/**
 * CategoryDao.java
 */
package com.babek.business.dao;

import java.util.List;

import com.babek.business.entity.Category;
/**
 * @author aan
 * @Date Created Oct 7, 2011
 */
public interface CategoryDao {
	List<Category> getAllCategories();
	List<Category> getAllParentCategory();
	List<Category> getAllCategoryByCondition(String condition,String val);// condition=category_code,category_name,parent_code,date_created
	Category getCategoryByCode(String categoryCode);
	Category getCategoryByCondition(String condition,String val);
	void insertCategory(Category category);
	void updateCategory(Category category);
	

}
